package designpattern.proxy.findGirlFriend;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 刘牌
 * @Date: 2021/12/17/10:43
 * @Description:
 */
public class Steak implements IPeople{

    private final MikeyTeacher mikeyTeacher;

    public Steak(MikeyTeacher mikeyTeacher){
        this.mikeyTeacher = mikeyTeacher;
    }

    @Override
    public void findGirlFriend() {
        System.out.println("steak: 我想找一个女朋友,委托了mikey老师帮我找");
        //委托mikey老师去找
        mikeyTeacher.findGirlFriend();
        System.out.println("steak: mikey老师给我找到了女朋友,我现在开始交往了");
    }
}
